package org.example.dao;

import org.example.pojo.User;

import java.util.List;

public interface UserDao {
    /**
     * find user by id
     * @param id
     * @return
     */
    public User queryUserById(int id);

    /**
     * get all users
     * @return
     */
    public List<User> queryUserAll();

    /**
     * add user
     * @param user
     */
    public void inserUser(User user);

    /**
     * update user's information
     * @param user
     */
    public void updateUser(User user);

    /**
     *  delete a user by id
     * @param id
     */
    public void deleteUser(int id);
}
